<script setup lang="ts">
onMounted(() => {
  document.body.addEventListener('plugin_web_update_notice', () => {
    CloudModal.confirm({
      title: '版本升级',
      content: '程序版本更新，请刷新页面以获取最新的资源',
      closable: false,
      maskClosable: false,
      hideCancel: true,
      width: 420,
      okText: '刷新',
      onOk: () => {
        window.location.reload()
      }
    })
  })
})
</script>

<template>
  <router-view />
</template>

<style scoped></style>
